tried for a long time to do 2 pipelines that use both inputs but couldn't figure it out. having three pipelines is more expensive but at least it works!